﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Common;
using Persistence.Dao;
using Domain;
using Persistence;
namespace web
{
    public partial class js_floatqq : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindList();
            }
        }

        private void BindList()
        {
            string what = "*";
            string where = "1=1";
            string orderBy = "qqOrder asc";
            IList<QqOnline> list = Singleton<QqOnlineDao>.Instance.GetModels(what, where, orderBy, 100, 1);
            if (list.Count > 0)
            {
                rptList.Visible = true;
                rptList.DataSource = list;
                rptList.DataBind();
            }
            else
            {
                rptList.Visible = false;
            }
        }
    }
}
